package de.khaled.diplom;

public class Kante {
	private Gut gutKnoten;
	private Kaeufer kaeuferKnoten;
	private String index;
	private int direction = 0; // values : 0 = has not direction,  +1 = Kaeufer to Gut direction,  -1 = Gut to Kaeufer direction
	
	public Kante(Kaeufer kaeuferKnoten, Gut gutKnoten){
		this.gutKnoten = gutKnoten;
		this.kaeuferKnoten = kaeuferKnoten;
	}
	
	public Gut getGutKnoten() {
		return gutKnoten;
	}
	public void setGutKnoten(Gut gutKnoten) {
		this.gutKnoten = gutKnoten;
	}
	public Kaeufer getKaeuferKnoten() {
		return kaeuferKnoten;
	}
	public void setKaeuferKnoten(Kaeufer kaeuferKnoten) {
		this.kaeuferKnoten = kaeuferKnoten;
	}
	public String getIndex() {
		return index;
	}
	public void setIndex(String index) {
		this.index = index;
	}

	public int getDirection() {
		return direction;
	}

	public void setDirection(int direction) {
		this.direction = direction;
	}
	
	public boolean isVorwaertsKante(){
		return direction == 1;
	}
 
	public boolean isrueckwaertsKante(){
		return direction == -1;
	}
}
